//---------------------------------------------------------------------------
#ifndef sem_all_deallH
#define sem_all_deallH
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/types.h>

/* We must define union semun ourselves.  */

union semun {
	int val;
	struct semid_ds *buf;
	unsigned short int *array;
	struct seminfo *__buf;
};

int binary_semaphore_allocation (key_t key, int sem_flags);
int binary_semaphore_deallocate (int semid);
int binary_semaphore_initialize (int semid);
int binary_semaphore_wait (int semid);
int binary_semaphore_post (int semid);
//---------------------------------------------------------------------------
#endif
